@import "./data";
@import "./color";
@import "./mixin";
// 详情页第二导航栏
.list_of_page_nav {
    width: 100%;
    height: 50px;
    background-color: #333;
    &.active{
        position: fixed;
        top: 0;
        z-index: 5;
    }
    .list_of_page_center {
        width: $type_area_width;
        margin: 0 auto;
        position: relative;
        .page_nav_left {
            float: left;
            overflow: hidden;
            .page_logo {
                position: absolute;
                left: 0;
                width: 210px;
                height: 82px;
                margin-left: 0;
            }
            .left_wrapper {
                float: left;
                height: 50px;
                line-height: 50px;
                margin-left: 180px;
            }
            .page_active {
                background: #fff;
                box-shadow: inset 0 1px 3px 0 rgb(114 0 0 / 40%);
                border-radius: 10px;
                color: #dd2f2f;
                letter-spacing: 0;
                font-weight: 600;
                text-align: justify;
                padding: 2px 12px 4px;
                margin-right: 20px;
                font-size: 18px;
            }
            .page_sec_nav {
                position: relative;
                padding: 0 10px 2px;
                color: #fff;
                font-size: 16px;
                font-weight: 500;
                &:hover {
                    color: red;
                }
            }
        }
        .page_nav_right {
            float: right;
            margin-top: 13px;
            width: 350px;
            height: 23px;
            margin-right: 80px;
            img {
                width: 100%;
            }
        }
    }
}

// 详情页分类
.list_of_page_type {
    width: 100%;
    background: #fff;
    display: flex;
    height: 60px;
    box-shadow: inset 0 -1px 0 0 #eee;
    &.active{
        position: fixed;
        top: 50px;
        z-index: 5;
    }
    .page_type_center {
        width: $type_area_width;
        display: flex;
        overflow: hidden;
        vertical-align: middle;
        align-items: center;
        height: 60px;
        flex-wrap: nowrap;
        justify-content: space-around;
        background-color: #fff;
        box-shadow: inset 0 -1px 0 0 #eee;
        margin: 0 auto;
        font-size: 12px;
        li {
            font-size: 14px;
            font-weight: 400;
            font-stretch: normal;
            line-height: 56px;
            letter-spacing: 0;
            color: #333;
            position: relative;
            cursor: pointer;
            box-sizing: border-box;
            border-bottom: 3px solid transparent;
            &:hover {
                color: #dd2f2f;
            }
            &.active {
                border-bottom: 3px solid red;
                color: #dd2f2f;
            }
        }
    }
}

// 详情页排序
.list_of_page_sort {
    width: 100%;
    height: 50px;
    background-color: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    vertical-align: middle;
    background-color: #fff;
    &.active{
        position: fixed;
        top: 110px;
        z-index: 5;
    }
    .list_of_page_sort_center {
        width: $type_area_width;
        margin: 0 auto;
        .sort_wrapper {
            display: flex;
            align-items: center;
            margin-left: 20px;
            span {
                display: flex;
                align-items: center;
                width: 72px;
                font-size: 12px;
                cursor: pointer;
                &.active {
                    color: red;
                }
                &:hover {
                    color: #dd2f2f;
                }
                input {
                    margin: 0;
                    padding: 0;
                    margin-right: 5px;
                }
                i {
                    display: inline-block;
                    margin-left: 5px;
                }
            }
            .new_today {
                margin-left: 22px;
                margin-right: 28px;
            }
        }
    }
}

// 详情页商品列表
.list_of_goods_list {
    background-color: #f2f2f2;
    .goods_list_center {
        width: $type_area_width;
        margin: 0 auto;
        overflow: hidden;
        .goods_content {
            overflow: hidden;
            float: left;
            position: relative;
            width: 290px;
            height: 400px;
            margin: 10px 10px 0 0;
            background: #fff;
            font-family: Microsoft Yahei;
            padding-bottom: 0;
            cursor: pointer;
            &:nth-child(4n){
                margin-right: 0px;
            }
            .goods_img {
                position: relative;
                width: 260px;
                height: 260px;
                margin: 15px;
                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    position: relative;
                    z-index: 2;
                }
            }
            .goods_name {
                color: #333;
                display: flex;
                flex-flow: column nowrap;
                position: relative;
                z-index: 2;
                cursor: pointer;
                margin: 0 15px;
                overflow: hidden;
                font-family: Microsoft Yahei;
                font-size: 14px;
                height: 24px;
                font-weight: 400;
                line-height: 24px;
                font-stretch: normal;
                letter-spacing: 0;
                &:hover {
                    color: $nav_import_color;
                }
            }
            .goods_desc {
                cursor: pointer;
                color: #dd2f2f;
                margin: 0 15px;
                overflow: hidden;
                font-size: 14px;
                height: 24px;
                font-weight: 400;
                line-height: 24px;
                font-stretch: normal;
                letter-spacing: 0;
            }
            .goods_price_btn {
                margin-top: 12px;
                margin-top: 9px\9;
                width: 290px;
                height: 50px;
                display: flex;
                line-height: 50px;
                color: #333;
                background: url(../img/list_of_goods_price_btn_bg.png) center no-repeat;
                .price_desc {
                    width: 202px;
                    .sale_price {
                        display: flex;
                        align-items: flex-end;
                        float: left;
                        width: 100%;
                        .now_price {
                            font-family: Tahoma;
                            font-weight: 700;
                            font-stretch: normal;
                            letter-spacing: 0;
                            color: #fff;
                            height: 28px;
                            line-height: 34px;
                            font-size: 28px;
                            padding: 0 10px;
                            i {
                                font-size: 14px;
                            }
                            span {
                                display: inline-block;
                                margin-left: -10px;
                            }
                        }
                        .old_price {
                            height: 28px;
                            line-height: 44px;
                            font-family: Tahoma;
                            font-size: 12px;
                            font-weight: 400;
                            font-stretch: normal;
                            letter-spacing: 0;
                            color: #fff;
                            i {
                                font-size: 12px;
                                text-decoration: line-through;
                            }
                            span {
                                display: inline-block;
                                margin-left: -5px;
                                text-decoration: line-through;
                            }
                        }
                    }
                    .lowest_price_num {
                        display: flex;
                        float: left;
                        height: 22px;
                        line-height: 20px;
                        color: #fff;
                        padding-left: 10px;
                        font-size: 12px;
                        .lowest_icon {
                            width: 11px;
                            height: 22px;
                            background: url(../img/lowestPrice-bg.png) center no-repeat;
                            background-size: 11px 14px;
                            margin-right: 6px;
                        }
                        .lowest_type {
                            line-height: 20px;
                            color: #fff;
                            b {
                                margin: 0 8px;
                            }
                        }
                        .sale_num {
                            font-size: 12px;
                            font-weight: 400;
                            letter-spacing: 0;
                        }
                    }
                    
                }
                .buy_btn {
                    width: 88px;
                    height: 50px;
                    background: url(../img/isStemal.png) center no-repeat;
                    background-size: 100% 100%;
                    text-align: center;
                    font-family: Microsoft YaHei;
                    font-size: 14px;
                    font-weight: 700;
                    font-stretch: normal;
                    letter-spacing: 0;
                    color: #dd2f2f;
                    position: relative;
                    z-index: 2;
                    &:hover{
                        cursor: pointer;
                        background: url(../img/isStemal_hover.png) center no-repeat;
                    background-size: 100% 100%;
                }
                }
            }
        }
    }
}
